using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using tracker.Models.BLL;

namespace tracker.Controllers
{
    public class WelcomeController : Controller
    {
        //
        // GET: /Welcome/

        public ActionResult Index()
        {
            if (new EUserLoginBLL().checkSession() == 1)
            {
                return Redirect("/Home");
            }
            return View();
        }
        
        public string login(string userName, string passWord)
        {
            EUserLoginBLL user = new EUserLoginBLL();
            return user.login(userName, passWord).ToString();
        }
        
    }
}
